<%@ include file="/WEB-INF/jspf/directive/taglib.jspf"%>

<html>

<c:set var="title">
	<fmt:message key="settings.title.text" />
</c:set>
<%@ include file="/WEB-INF/jspf/head.jspf"%>

</head>
<body>

	<div class="container small-form">
		<form class="settings_form" action="controller" method="post" id="settingsForm"
			name="settingsForm">
			<input type="hidden" name="command" value="updateSettings" />
			<h3><fmt:message key="settings.label.change" /></h3>
			<div class="control-group">
				<h4><fmt:message key="settings.label.firstname" /></h4>
				<input name="firstName" class="txt-fld input-block-level" type="text"
					placeholder='<fmt:message key="settings.input.firstname" />'
					value=<c:out value="${user.firstName}"></c:out>>
			</div>
			<div class="control-group">
				<h4><fmt:message key="settings.label.lastname" /></h4>
				<input name="lastName" class="input-block-level txt-fld" type="text"
					placeholder='<fmt:message key="settings.input.lastname" />'
					value=<c:out value="${user.lastName}"></c:out>>
			</div>
			<button class="btn btn-large btn-block" type="submit">
				<fmt:message key="settings.button.update" />
			</button>
		</form>

		<a href="controller?command=browseUserPage"
			class="btn btn-large btn-block"><fmt:message key="settings.button.back" /></a>
	</div>
	
	<%-- Validation --%>
	<script src="js/settingsvalidator.js"></script>
</body>
</html>